package user;

import book.bookList;
import operation.IOperation;

import java.awt.print.Book;

public abstract class User {
    //
    public String name;
    public IOperation[] ioperations;//没有初始化
    public User(String name){
        this.name = name;
    }
    public abstract int menu();

    public void doOperations(int choice, bookList books){
//         this.ioperations[choice].work();
        IOperation ioperation = this.ioperations[choice];
        ioperation.work(books);
    }

}
